From: Carol (Nichols || Goulding) Date: Tue, 17 May 2016 22:33:27 +0000 (-0400) Subject: Add a `[dev-dependencies]` example X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~14^2~7^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=af09c151be9e1352d6fb748cd670f526fe9ad55a;p=cargo.git Add a `[dev-dependencies]` example --- diff --git a/src/doc/specifying-dependencies.md b/src/doc/specifying-dependencies.md index bfa92e9e6..ac121c714 100644 --- a/src/doc/specifying-dependencies.md +++ b/src/doc/specifying-dependencies.md @@ -286,7 +286,14 @@ native = { path = "native/x86_64" } # Development dependencies You can add a `[dev-dependencies]` section to your `Cargo.toml` whose format -is equivalent to `[dependencies]`. Dev-dependencies are not used when compiling +is equivalent to `[dependencies]`: + +```toml +[dev-dependencies] +tempdir = "0.3" +``` + +Dev-dependencies are not used when compiling a package for building, but are used for compiling tests, examples, and benchmarks.